﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace DataIntegrityChecker.Data
{
    class RowListViewItem: ListViewItem
    {
        private Proposition proposition;
        private DataRow dataRow;
        
        public RowListViewItem(Proposition proposition, DataRow row)
            : base(new string[] { row.Id.ToString(), row.Values[proposition.ColumnToCorrect] })
        {
            this.proposition = proposition;
            this.dataRow = row;
        }

        internal Proposition Proposition
        {
            get { return proposition; }
            set { proposition = value; }
        }

        internal DataRow DataRow
        {
            get { return dataRow; }
            set { dataRow = value; }
        }

    }
}
